﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.DokumentTemplateStavka"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class DokumentTemplateStavkaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// ComboBox for the IDArtikl property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDArtikl;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDArtikl property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDArtiklLabel;
		
		/// <summary>
		/// TextBox for the Kolicina property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKolicina;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Kolicina property.
		/// </summary>
		protected System.Windows.Forms.Label uxKolicinaLabel;
		
		/// <summary>
		/// TextBox for the Kolicina2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKolicina2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Kolicina2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxKolicina2Label;
		
		/// <summary>
		/// TextBox for the Kolicina3 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKolicina3;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Kolicina3 property.
		/// </summary>
		protected System.Windows.Forms.Label uxKolicina3Label;
		
		/// <summary>
		/// TextBox for the Vrijednost property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxVrijednost;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Vrijednost property.
		/// </summary>
		protected System.Windows.Forms.Label uxVrijednostLabel;
		
		/// <summary>
		/// TextBox for the Vrijednost2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxVrijednost2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Vrijednost2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxVrijednost2Label;
		
		/// <summary>
		/// TextBox for the Vrijednost3 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxVrijednost3;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Vrijednost3 property.
		/// </summary>
		protected System.Windows.Forms.Label uxVrijednost3Label;
		
		/// <summary>
		/// TextBox for the Postotak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPostotak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Postotak property.
		/// </summary>
		protected System.Windows.Forms.Label uxPostotakLabel;
		
		/// <summary>
		/// TextBox for the Postotak2 property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPostotak2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Postotak2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxPostotak2Label;
		
		/// <summary>
		/// ComboBox for the IDDokument property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDDokument;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDokument property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDokumentLabel;
		
		/// <summary>
		/// ComboBox for the IDValuta property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDValuta;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDValuta property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDValutaLabel;
		
		/// <summary>
		/// ComboBox for the IDValuta2 property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDValuta2;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDValuta2 property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDValuta2Label;
		#endregion
		
		#region Main entity
		private Entities.DokumentTemplateStavka _DokumentTemplateStavka;
		/// <summary>
		/// Gets or sets the <see cref="Entities.DokumentTemplateStavka"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.DokumentTemplateStavka"/> instance.</value>
		public Entities.DokumentTemplateStavka DokumentTemplateStavka
		{
			get {return this._DokumentTemplateStavka;}
			set
			{
				this._DokumentTemplateStavka = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDArtikl.DataBindings.Clear();
			this.uxIDArtikl.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDArtikl", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKolicina.DataBindings.Clear();
			this.uxKolicina.DataBindings.Add("Text", this.uxBindingSource, "Kolicina", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKolicina2.DataBindings.Clear();
			this.uxKolicina2.DataBindings.Add("Text", this.uxBindingSource, "Kolicina2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKolicina3.DataBindings.Clear();
			this.uxKolicina3.DataBindings.Add("Text", this.uxBindingSource, "Kolicina3", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVrijednost.DataBindings.Clear();
			this.uxVrijednost.DataBindings.Add("Text", this.uxBindingSource, "Vrijednost", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVrijednost2.DataBindings.Clear();
			this.uxVrijednost2.DataBindings.Add("Text", this.uxBindingSource, "Vrijednost2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVrijednost3.DataBindings.Clear();
			this.uxVrijednost3.DataBindings.Add("Text", this.uxBindingSource, "Vrijednost3", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPostotak.DataBindings.Clear();
			this.uxPostotak.DataBindings.Add("Text", this.uxBindingSource, "Postotak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPostotak2.DataBindings.Clear();
			this.uxPostotak2.DataBindings.Add("Text", this.uxBindingSource, "Postotak2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDokument.DataBindings.Clear();
			this.uxIDDokument.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDDokument", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDValuta.DataBindings.Clear();
			this.uxIDValuta.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDValuta", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDValuta2.DataBindings.Clear();
			this.uxIDValuta2.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDValuta2", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="DokumentTemplateStavkaEditControlBase"/> class.
		/// </summary>
		public DokumentTemplateStavkaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_DokumentTemplateStavka != null) _DokumentTemplateStavka.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIDArtikl = new System.Windows.Forms.ComboBox();
			uxIDArtiklLabel = new System.Windows.Forms.Label();
			this.uxKolicina = new System.Windows.Forms.TextBox();
			uxKolicinaLabel = new System.Windows.Forms.Label();
			this.uxKolicina2 = new System.Windows.Forms.TextBox();
			uxKolicina2Label = new System.Windows.Forms.Label();
			this.uxKolicina3 = new System.Windows.Forms.TextBox();
			uxKolicina3Label = new System.Windows.Forms.Label();
			this.uxVrijednost = new System.Windows.Forms.TextBox();
			uxVrijednostLabel = new System.Windows.Forms.Label();
			this.uxVrijednost2 = new System.Windows.Forms.TextBox();
			uxVrijednost2Label = new System.Windows.Forms.Label();
			this.uxVrijednost3 = new System.Windows.Forms.TextBox();
			uxVrijednost3Label = new System.Windows.Forms.Label();
			this.uxPostotak = new System.Windows.Forms.TextBox();
			uxPostotakLabel = new System.Windows.Forms.Label();
			this.uxPostotak2 = new System.Windows.Forms.TextBox();
			uxPostotak2Label = new System.Windows.Forms.Label();
			this.uxIDDokument = new System.Windows.Forms.ComboBox();
			uxIDDokumentLabel = new System.Windows.Forms.Label();
			this.uxIDValuta = new System.Windows.Forms.ComboBox();
			uxIDValutaLabel = new System.Windows.Forms.Label();
			this.uxIDValuta2 = new System.Windows.Forms.ComboBox();
			uxIDValuta2Label = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxIDArtiklLabel
			//
			this.uxIDArtiklLabel.Text = "IDArtikl:";
			this.uxIDArtiklLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDArtiklLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtiklLabel);			
			//
			// uxIDArtikl
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDArtikl);
			this.uxIDArtikl.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDArtikl);
			//
			// uxKolicinaLabel
			//
			this.uxKolicinaLabel.Text = "Kolicina:";
			this.uxKolicinaLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxKolicinaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicinaLabel);			
			//
			// uxKolicina
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina);
			this.uxKolicina.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxKolicina);
			//
			// uxKolicina2Label
			//
			this.uxKolicina2Label.Text = "Kolicina2:";
			this.uxKolicina2Label.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxKolicina2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina2Label);			
			//
			// uxKolicina2
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina2);
			this.uxKolicina2.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxKolicina2);
			//
			// uxKolicina3Label
			//
			this.uxKolicina3Label.Text = "Kolicina3:";
			this.uxKolicina3Label.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxKolicina3Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina3Label);			
			//
			// uxKolicina3
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina3);
			this.uxKolicina3.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxKolicina3);
			//
			// uxVrijednostLabel
			//
			this.uxVrijednostLabel.Text = "Vrijednost:";
			this.uxVrijednostLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxVrijednostLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednostLabel);			
			//
			// uxVrijednost
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost);
			this.uxVrijednost.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxVrijednost);
			//
			// uxVrijednost2Label
			//
			this.uxVrijednost2Label.Text = "Vrijednost2:";
			this.uxVrijednost2Label.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxVrijednost2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost2Label);			
			//
			// uxVrijednost2
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost2);
			this.uxVrijednost2.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxVrijednost2);
			//
			// uxVrijednost3Label
			//
			this.uxVrijednost3Label.Text = "Vrijednost3:";
			this.uxVrijednost3Label.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxVrijednost3Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost3Label);			
			//
			// uxVrijednost3
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost3);
			this.uxVrijednost3.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxVrijednost3);
			//
			// uxPostotakLabel
			//
			this.uxPostotakLabel.Text = "Postotak:";
			this.uxPostotakLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxPostotakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPostotakLabel);			
			//
			// uxPostotak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxPostotak);
			this.uxPostotak.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxPostotak);
			//
			// uxPostotak2Label
			//
			this.uxPostotak2Label.Text = "Postotak2:";
			this.uxPostotak2Label.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxPostotak2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPostotak2Label);			
			//
			// uxPostotak2
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxPostotak2);
			this.uxPostotak2.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxPostotak2);
			//
			// uxIDDokumentLabel
			//
			this.uxIDDokumentLabel.Text = "IDDokument:";
			this.uxIDDokumentLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxIDDokumentLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDokumentLabel);			
			//
			// uxIDDokument
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDokument);
			this.uxIDDokument.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxIDDokument);
			//
			// uxIDValutaLabel
			//
			this.uxIDValutaLabel.Text = "IDValuta:";
			this.uxIDValutaLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxIDValutaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDValutaLabel);			
			//
			// uxIDValuta
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDValuta);
			this.uxIDValuta.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxIDValuta);
			//
			// uxIDValuta2Label
			//
			this.uxIDValuta2Label.Text = "IDValuta2:";
			this.uxIDValuta2Label.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIDValuta2Label);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDValuta2Label);			
			//
			// uxIDValuta2
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDValuta2);
			this.uxIDValuta2.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIDValuta2);
			//
			// uxIDArtikl
			//				
			this.uxIDArtikl.DisplayMember = "Naziv";	
			this.uxIDArtikl.ValueMember = "ID";	
			//
			// uxIDDokument
			//				
			this.uxIDDokument.DisplayMember = "IDDokumentTip";	
			this.uxIDDokument.ValueMember = "ID";	
			//
			// uxIDValuta
			//				
			this.uxIDValuta.DisplayMember = "Naziv";	
			this.uxIDValuta.ValueMember = "ID";	
			//
			// uxIDValuta2
			//				
			this.uxIDValuta2.DisplayMember = "Naziv";	
			this.uxIDValuta2.ValueMember = "ID";	
			// 
			// DokumentTemplateStavkaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "DokumentTemplateStavkaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Artikl> _IDArtiklList;
		
		/// <summary>
		/// The ComboBox associated with the IDArtikl property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Artikl> IDArtiklList
		{
			get {return _IDArtiklList;}
			set 
			{
				this._IDArtiklList = value;
				this.uxIDArtikl.DataSource = null;
				this.uxIDArtikl.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDArtiklList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDArtikl property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDArtiklList
		{
			get { return _allowNewItemInIDArtiklList;}
			set
			{
				this._allowNewItemInIDArtiklList = value;
				this.uxIDArtikl.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Dokument> _IDDokumentList;
		
		/// <summary>
		/// The ComboBox associated with the IDDokument property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Dokument> IDDokumentList
		{
			get {return _IDDokumentList;}
			set 
			{
				this._IDDokumentList = value;
				this.uxIDDokument.DataSource = null;
				this.uxIDDokument.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDDokumentList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDDokument property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDDokumentList
		{
			get { return _allowNewItemInIDDokumentList;}
			set
			{
				this._allowNewItemInIDDokumentList = value;
				this.uxIDDokument.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Valuta> _IDValutaList;
		
		/// <summary>
		/// The ComboBox associated with the IDValuta property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Valuta> IDValutaList
		{
			get {return _IDValutaList;}
			set 
			{
				this._IDValutaList = value;
				this.uxIDValuta.DataSource = null;
				this.uxIDValuta.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDValutaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDValuta property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDValutaList
		{
			get { return _allowNewItemInIDValutaList;}
			set
			{
				this._allowNewItemInIDValutaList = value;
				this.uxIDValuta.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Valuta> _IDValuta2List;
		
		/// <summary>
		/// The ComboBox associated with the IDValuta2 property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Valuta> IDValuta2List
		{
			get {return _IDValuta2List;}
			set 
			{
				this._IDValuta2List = value;
				this.uxIDValuta2.DataSource = null;
				this.uxIDValuta2.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDValuta2List;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDValuta2 property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDValuta2List
		{
			get { return _allowNewItemInIDValuta2List;}
			set
			{
				this._allowNewItemInIDValuta2List = value;
				this.uxIDValuta2.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
